const a = [];

a.push(1)

a.forEach((value, index, array) => {
    console.log(value)
    let element = array[index];
    console.log(element)
})

function A(a,b) {
    this.m = 5;
    this.n = 3;

    this.c = a;
    this.d = b;
}

let b = new Promise(A)

b.then(value => {
    value.a = 5;
    value.b = 4;
}).finally(() => {
    console.log("End")
})

